Provide an accessor for their connection ; however , application servers and web application frameworks frequently use the decorator pattern to wrap jdbc connections 為它們的連接提供了存取器;但是,應(yīng)用程序服務(wù)器和web應(yīng)用程序框架頻繁地使用修飾器模式包裝jdbc連接。
In object-oriented programming, the decorator pattern is a design pattern that allows behavior to be added to an individual object, either statically or dynamically, without affecting the behavior of other objects from the same class.